package cn.jsc.org.mapper;

import cn.jsc.basic.mapper.BaseMapper;
import cn.jsc.org.domain.Employee;
import cn.jsc.org.domain.Shop;

public interface EmployeeMapper extends BaseMapper<Employee> {
    //基础方法由继承得到
    /*更新店铺id*/
    void updateShopId(Shop shop);
    /*根据账号查询是否入驻过*/
    Employee loadByAccount(Employee admin);

    /**
     * 根据LoginInfoId查询employee对象
     * @param id
     * @return
     */
    Employee loadByLoginInfoId(Long id);

    /**
     * 根据ShopId查询店铺对象
     * @param shop_id
     * @return
     */
    Employee loadByShopId(Long shop_id);
}
